package com.adminlab.managers
{
	import com.adminlab.vos.ExamType;
	
	import flash.utils.Dictionary;
	
	import mx.collections.ArrayCollection;

	public class AdminLabManager
	{
		[Bindable]
		public var persistenceManager:PersistenceManager;
		
		[Bindable]
		public var reportList:ArrayCollection;
		
		[Bindable]
		public var examTypeSummarys:ArrayCollection;
		
		[Bindable]
		public var examTypes:Dictionary = new Dictionary();
		
		public function loadExamTypes():void
		{
			examTypeSummarys = persistenceManager.getExamTypeSummarys();
		}
		
		public function loadReportList():void
		{
			reportList = persistenceManager.getReportList();
		}
		
		public function updateExamTypesDetail( examType:ExamType ):void
		{
			persistenceManager.saveExamType( examType );
			examTypes[ examType.code ] = examType;
		}	
	}
}